package com.wkk.websocket.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wkk.websocket.dto.AnnouncementHistoryDto;
import com.wkk.websocket.entity.Announcement;

/**
 * @author : WangKeKe
 * @date : 2020/9/30 15:02
 * Description :
 */


public interface AnnouncementService extends IService<Announcement> {

    /**
     * 用户使用喇叭
     *
     * @param content 消息详情
     * @return true:false
     */
    boolean releaseAnnouncement(String content);

    /**
     * 获取大喇叭历史
     *
     * @param pageNo   页码
     * @param pageSize 每页显示数
     * @return 分页信息
     */
    Page<AnnouncementHistoryDto> queryPage(Integer pageNo, Integer pageSize);
}
